package xin.ganbo.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 数据字典明细
 * @author ganbo E-mail:bo.gan@56qq.com
 * @since 2017-12-02 15:03
 */
@Entity
@Table(name = "sys_dictionarydetail")
public class DictionaryDetail extends BaseEntity{

    private String name;    //数据字典明细表值
    @ManyToOne
    @JoinColumn(name = "dictionarytypeType_id")
    private DictionaryType type;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DictionaryType getType() {
        return type;
    }

    public void setType(DictionaryType type) {
        this.type = type;
    }
}
